<template>
    <div style="padding:30px;">
        <el-alert :closable="false" title="二级菜单"/>
        <el-button
            v-if="checkPermission(['admin','MENU_ALL','MENU_CREATE'])"
            class="filter-item"
            size="mini"
            type="primary"
            icon="el-icon-plus"
            >我是可以看到的</el-button>
        <div v-if="checkPermission(['USER_ALL','MENU_CREATE','USER_SELECT'])">我没有admin权限，我是看不见的</div>
    </div>
</template>
<script>
import checkPermission from '@/utils/permission' 
export default {
    methods: {
        checkPermission,
    }
}
</script>